Optionally sets str function for your class which gets used by the Python str() operator.
SetToStringFunction(Signature of the the callback function must be like:
SomeName(pySelf as Ptr) as Ptr
Where SomeName can be anything you want.
See example use in the example project called: “Xojo creating new Python class (Advanced)”.